home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.tree;
-
- import java.util.Enumeration;
-
- final class DefaultMutableTreeNode$PostorderEnumeration implements Enumeration {
- // $FF: synthetic field
- private final DefaultMutableTreeNode this$0;
- protected TreeNode root;
- protected Enumeration children;
- protected Enumeration subtree;
-
- public DefaultMutableTreeNode$PostorderEnumeration(DefaultMutableTreeNode var1, TreeNode var2) {
- this.this$0 = var1;
- this.root = var2;
- this.children = this.root.children();
- this.subtree = DefaultMutableTreeNode.EMPTY_ENUMERATION;
- }
-
- public boolean hasMoreElements() {
- return this.root != null;
- }
-
- public Object nextElement() {
- Object var1;
- if (this.subtree.hasMoreElements()) {
- var1 = this.subtree.nextElement();
- } else if (this.children.hasMoreElements()) {
- this.subtree = new DefaultMutableTreeNode$PostorderEnumeration(this.this$0, (TreeNode)this.children.nextElement());
- var1 = this.subtree.nextElement();
- } else {
- var1 = this.root;
- this.root = null;
- }
-
- return var1;
- }
- }
-